import request from '@/utils/request'

// 查询填空题列表
export function listFill(query) {
  return request({
    url: '/exam/fill/list',
    method: 'get',
    params: query
  })
}

// 查询填空题详细
export function getFill(fillId) {
  return request({
    url: '/exam/fill/' + fillId,
    method: 'get'
  })
}

// 新增填空题
export function addFill(data) {
  return request({
    url: '/exam/fill',
    method: 'post',
    data: data
  })
}

// 修改填空题
export function updateFill(data) {
  return request({
    url: '/exam/fill',
    method: 'put',
    data: data
  })
}

// 删除填空题
export function delFill(fillId) {
  return request({
    url: '/exam/fill/' + fillId,
    method: 'delete'
  })
}

// 导出填空题
export function exportFill(query) {
  return request({
    url: '/exam/fill/export',
    method: 'get',
    params: query
  })
}